<?php $this->widget('application.widgets.Highlighter');?>
<?php Yii::app()->clientScript->registerScriptFile(Helper::getUrl('js/post.js'))?>
<?php
$this->breadcrumbs=array(
	'Notes',
);

$this->setPageTitle('笔记查看');

$this->menu=array(
	array('label'=>'Create Notes', 'url'=>array('create')),
	array('label'=>'List Notes', 'url'=>array('index')),
);
?>

<form method="post" action="#" id="list-form">
<?php $this->widget('ListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
)); ?>
</form>

<script type="text/javascript">
(function($){
    $(function(){
        $("a.delete").live("click", function(){
            if (confirm("Are you sure?")) {
                $("form#list-form").attr("action", $(this).attr("href")).submit();
            }
            return false;
        })
    })
})(jQuery)
</script>